#include "MyErrors.hh"

void
MyErrors::set_err (int err)
{
  err_ = err;
}

int
MyErrors::get_err ()
{
  return err_;
}

void
MyErrors::open_error_print ()
{
  std::cerr << "Opennig file error " << err_ << std::endl;
  exit (1);
}

void
MyErrors::read_error_print ()
{
  std::cerr << "Reading file error " << err_ << std::endl;
  exit (1);
}

void
MyErrors::parse_error_print ()
{
  std::cerr << "Parsing file error " << err_ << std::endl;
  exit (1);
}

void
MyErrors::pos_not_empty_error_print ()
{
  std::cerr << "Position not empty file error " << err_ << std::endl;
  exit (1);
}

void
MyErrors::init_error_print ()
{
  if (err_ == 1)
    std::cerr << "No teams file error " << err_ << std::endl;
  else if (err_ == 2)
    std::cerr << "No map defined file error " << err_ << std::endl;
  else if (err_ == 3)
    std::cerr << "One team without Queen file error " << err_ << std::endl;

  exit (1);
}
void
MyErrors::get_rand_case_error_print ()
{
  std::cerr << "Get random case error " << err_ << std::endl;
  exit (1);
}
